package com.thinqq.web.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
  * An ORM object representing an Lead.
  */
 @PersistenceCapable(identityType = IdentityType.APPLICATION)
 public class Lead {
	 public Lead(String input) {
		 this.name = input;	
	 }

	 @PrimaryKey
	 @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	 private Long id;

	 public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOrganization() {
		return organization;
	}

	public void setOrganization(String organization) {
		this.organization = organization;
	}

	public String getBusiness() {
		return business;
	}

	public void setBusiness(String business) {
		this.business = business;
	}

	public String getDesignation() {
		return designation;
	}

	public void setDesignation(String designation) {
		this.designation = designation;
	}

	public String[] getDesiredsvc() {
		return desiredsvc;
	}

	public void setDesiredsvc(String[] desiredsvc) {
		this.desiredsvc = desiredsvc;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getBusinessphone() {
		return businessphone;
	}

	public void setBusinessphone(String businessphone) {
		this.businessphone = businessphone;
	}

	public String getContacttime() {
		return contacttime;
	}

	public void setContacttime(String contacttime) {
		this.contacttime = contacttime;
	}

	public String getAddress() {
		return address;
	}

	@Override
	public String toString() {
		return "name:"+name+"//"+
			   "organization:"+organization+"//"+
			   "business:"+business+"//"+
			   "designation:"+designation+"//"+
			   "desiredsvc:"+(desiredsvc==null?" ":desiredsvc.toString())+"//"+
			   "email:"+email+"//"+
			   "businessphone:"+businessphone+"//"+
			   "contacttime:"+contacttime+"//"+
			   "address:"+address+"//"+
			   "country:"+country+"//"+
			   "zip:"+zip+"//";
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String india) {
		this.country = india;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	@Persistent
	 private String name;
	 
	 @Persistent
	 private String organization;
	 
	 @Persistent
	 private String business;
	 
	 @Persistent
	 private String designation;

	 @Persistent
	 private String[] desiredsvc;

	 @Persistent
	 private String email;
	 
	 @Persistent
	 private String businessphone;

	 @Persistent
	 private String contacttime;

	 @Persistent
	 private String address;

	 @Persistent
	 private String country;

	 @Persistent
	 private String zip;

	 public String getName() {
		 return name;
	 }

	 public void setName(String input) {
		 this.name = input;
	 }

	 public Long getKey() {
		 return id;
	 }

 }